package com.lmn.sw_server2;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@EnableEurekaClient
@SpringBootApplication
public class SwServer2Application {

    private static final Logger LOGGER = LoggerFactory.getLogger(SwServer2Application.class);

    public static void main(String[] args) {
        SpringApplication.run(SwServer2Application.class, args);
        LOGGER.info("SwServer2 启动成功");
    }

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
